package org.msfj.authority.client.configuration;

import org.msfj.authority.client.config.JwtConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @User: Administrator
 * @Date: 2018/7/15 0015
 */
@Configuration
@ConditionalOnProperty(prefix = "jwtConfig",name = "userTokenHeader")
public class JwtAutoConfiguration {
    @Bean
    JwtConfig getJwtConfig() {
        return new JwtConfig();
    }
}
